/*
 * Copyright [duowan.com]
 * Web Site: http://www.duowan.com
 * Since 2005 - 2014
 */

package com.duowan.realtime.model;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;


/**
 * tableName: overview_computing_group [OverviewComputingGroup] 
 * 
 * @author badqiu email:badqiu(a)gmail.com
 * @version 1.0
 * @since 1.0
 */
public class OverviewComputingGroup  implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
	
	
	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
    /**
     * computingGroup       db_column: computing_group 
     */ 	
	private java.lang.String computingGroup;
	
    /**
     * partition       db_column: partition 
     */ 	
	private java.lang.String partition;
	
    /**
     * bitsetSize       db_column: bitset_size 
     */ 	
	private java.lang.Long bitsetSize;
	
    /**
     * elementNum       db_column: element_num 
     */ 	
	private java.lang.Long elementNum;
	
    /**
     * createTime       db_column: create_time 
     */ 	
	private java.util.Date createTime;
	
	//columns END

	public OverviewComputingGroup(){
	}

	public OverviewComputingGroup(
		java.lang.String computingGroup,
		java.lang.String partition
	){
		this.computingGroup = computingGroup;
		this.partition = partition;
	}

	public java.lang.String getComputingGroup() {
		return this.computingGroup;
	}
	
	public void setComputingGroup(java.lang.String value) {
		this.computingGroup = value;
	}
	
	public java.lang.String getPartition() {
		return this.partition;
	}
	
	public void setPartition(java.lang.String value) {
		this.partition = value;
	}
	
	public java.lang.Long getBitsetSize() {
		return bitsetSize;
	}

	public void setBitsetSize(java.lang.Long bitsetSize) {
		this.bitsetSize = bitsetSize;
	}

	public java.lang.Long getElementNum() {
		return this.elementNum;
	}
	
	public void setElementNum(java.lang.Long value) {
		this.elementNum = value;
	}
	
	public java.util.Date getCreateTime() {
		return this.createTime;
	}
	
	public void setCreateTime(java.util.Date value) {
		this.createTime = value;
	}
	

	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getComputingGroup())
			.append(getPartition())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(this == obj) return true;
		if(obj instanceof OverviewComputingGroup == false) return false;
		OverviewComputingGroup other = (OverviewComputingGroup)obj;
		return new EqualsBuilder()
			.append(getComputingGroup(),other.getComputingGroup())
			.append(getPartition(),other.getPartition())
			.isEquals();
	}
}

